﻿using PCBase.UIControls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace vciplib0
{
    public class PRM_SearchLine 
    {
        //[Browsable(false)]
        //public ROI_SearchLine roi = null;

        //public ROI_SearchLine GetROI()
        //{
        //    return roi;
        //}

        [Browsable(false)]
        public double RowBegin { get; set; } = 0;

        [Browsable(false)]
        public double RowEnd { get; set; }
        [Browsable(false)]
        public double ColumnBegin { get; set; }
        [Browsable(false)]
        public double ColumnEnd { get; set; }



        [Browsable(true), ReadOnly(true)]
        public int MeasureLength1 { get; set; } = 200;

        [Browsable(true)]
        public int MeasureLength2 { get; set; } = 15;

        [Browsable(true)]
        public double MeasureSigma { get; set; } = 3.0;

        [Browsable(true), Description("边缘灰阶过度阈值")]
        public int MeasureThreshold { get; set; } = 30;

        [Browsable(true), TypeConverter(typeof(SelectString)), Description("first: 第1边缘。last: 最后边缘")]
        public string measure_select { get; set; } = "first";

        [Browsable(true), TypeConverter(typeof(TransitionString)),Description("positive: 沿搜索方向 暗->明\nnegative: 沿搜索方向 明->暗\nall: 不区分极性 " )]
        public string measure_transition { get; set; } = "positive";

        [Browsable(true), Description("测量卡尺数量")]
        public int num_measures { get; set; } = 21;

    }
}
